package com.sc.mapper;

import com.sc.pojo.Information;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InformationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Information record);

    int insertSelective(Information record);

    Information selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Information record);

    int updateByPrimaryKey(Information record);

    List<Information> selectAllInfs(Integer accept);

    List<Information> selectAllInfsByLikes(@Param("accept") Integer accept,@Param("likes") String likes);

    int updateAcceptById(Integer id);

    List<Information> selectAllLjInfos(Integer accept);

    List<Information> selectAllLjInfosByLikes(@Param("accept") Integer accept,@Param("likes") String likes);

    int updateAcceptByIdInLjx(Integer acc);

    int updateAcceptStateByYidu(Integer id);

    List<Information> selectAllInfsByMy(Integer id);

    List<Information> selectAllInfsByMyByLikes(@Param("ids") Integer id,@Param("likes") String likes);

    int updateSend(Integer id);
}